-- GENERATED SPELL FOR [Huntsman Radley] --


function spell0_11613(pUnit, Event) --@Call Bloodshot,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(18262,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_11613', 1, 1)
end

function spell1_11613(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(14443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11613', 543, 1)
end

function spell2_11613(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11613', 566, 1)
end

function spell3_11613(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11613', 655, 1)
end

function Sorts_11613(pUnit, Event)
local choix_sorts_11613 = math.random(0, 3)
if choix_sorts_11613 == 0 then
pUnit:RegisterEvent('spell0_11613', 1, 1)
end
if choix_sorts_11613 == 1 then
pUnit:RegisterEvent('spell1_11613', 1, 1)
end
if choix_sorts_11613 == 2 then
pUnit:RegisterEvent('spell2_11613', 1, 1)
end
if choix_sorts_11613 == 3 then
pUnit:RegisterEvent('spell3_11613', 1, 1)
end
end

function mob11613_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11613', math.random(1500, 3000), 1)
end

function mob11613_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11613_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11613_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11613, 1, 'mob11613_Action')
RegisterUnitEvent(11613, 2, 'mob11613_Leave')
RegisterUnitEvent(11613, 3, 'mob11613_Kill')
RegisterUnitEvent(11613, 4, 'mob11613_Die')
